package com.gxa.community.admin.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.community.core.pojo.domain.OperateKillSpell;
import com.gxa.community.core.pojo.dto.SecKillDto;
import org.apache.ibatis.annotations.Param;
import org.omg.CORBA.StringHolder;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 秒杀信息表 Mapper 接口
 * </p>
 *
 * @author XYJ
 * @since 2022-07-18
 */
@Repository
public interface OperateKillSpellMapper extends BaseMapper<OperateKillSpell> {
    List<OperateKillSpell> selectAll(Integer type);
    Integer delKillId(String killId);
    OperateKillSpell querByKillId(String killId);
    List<SecKillDto> queryText(@Param("name")String name,
                               @Param("activeStatus")Integer activeStatus,
                               @Param("nowtime")Long nowtime,
                               @Param("status")Integer status,
                               @Param("startTime")Long startTime,
                               @Param("endTime")Long endTime,
                               @Param("type")Integer type);
}
